<template>
  <div>
    <van-cell>
      <!-- 标题区域的插槽 -->
      <template #title>
        <div class="title-box">
          <!-- 单张图片 -->
          <img :src="img" alt="" class="thumb"  />
          <!-- 标题 -->
          <div class="content">
            <p>{{ title }}</p>
            <span>你好</span>
          </div>

        </div>
      </template>
    </van-cell>
  </div>
</template>

<script>
/*
 *@Date: 2023-03-21 16:05:07
 *@Description: 模块描述
*/
export default {
  name: '',
  props: {
    // 文章的标题
    title: {
      type: String,
      default: ''
    },
    img: {
      type: String,
      default: ''
    }
  },
  data() {
    return {

    }
  },
  created() {},
  mounted() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.title-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.thumb {
  // 矩形黄金比例：0.618
  width: 113px;
  height: 70px;
  background-color: #f8f8f8;
  object-fit: cover;
}
.content{
  width: 60%;
}
</style>
